<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>图片滤镜效果</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        user-select: none;
      }

      body {
        min-height: 100vh;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        background: #1a1a1a;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        padding: 40px;
      }

      .filter-item {
        background: #2a2a2a;
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
      }

      .filter-item:hover {
        transform: translateY(-5px);
      }

      .filter-label {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 15px;
      }

      .image-demo {
        width: 100%;
        height: 250px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        border-radius: 12px;
        position: relative;
        overflow: hidden;
      }

      .image-demo::before {
        content: '🎨';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 80px;
      }

      /* 各种滤镜效果 */
      .vintage {
        filter: sepia(100%) saturate(150%) contrast(1.2) brightness(0.9);
      }

      .black-white {
        filter: grayscale(100%);
      }

      .warm {
        filter: sepia(50%) saturate(150%) brightness(1.1);
      }

      .cool {
        filter: hue-rotate(180deg) saturate(120%);
      }

      .high-contrast {
        filter: contrast(1.5) brightness(1.1);
      }

      .soft {
        filter: blur(1px) brightness(1.1) contrast(0.9);
      }

      .dramatic {
        filter: contrast(1.5) saturate(150%) brightness(0.8);
      }

      .pastel {
        filter: saturate(0.5) brightness(1.2) contrast(0.9);
      }

      .noir {
        filter: grayscale(100%) contrast(1.5) brightness(0.8);
      }

      .sunset {
        filter: sepia(30%) saturate(150%) hue-rotate(-10deg) brightness(1.1);
      }

      .cyberpunk {
        filter: hue-rotate(90deg) saturate(200%) contrast(1.3);
      }

      .retro {
        filter: sepia(80%) saturate(120%) contrast(1.1) brightness(0.95);
      }
    </style>
  </head>
  <body>
    <div class="filter-item">
      <div class="filter-label">原始</div>
      <div class="image-demo"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">怀旧 (Vintage)</div>
      <div class="image-demo vintage"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">黑白 (Black & White)</div>
      <div class="image-demo black-white"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">暖色调 (Warm)</div>
      <div class="image-demo warm"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">冷色调 (Cool)</div>
      <div class="image-demo cool"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">高对比度 (High Contrast)</div>
      <div class="image-demo high-contrast"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">柔和 (Soft)</div>
      <div class="image-demo soft"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">戏剧化 (Dramatic)</div>
      <div class="image-demo dramatic"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">粉彩 (Pastel)</div>
      <div class="image-demo pastel"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">黑色电影 (Noir)</div>
      <div class="image-demo noir"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">日落 (Sunset)</div>
      <div class="image-demo sunset"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">赛博朋克 (Cyberpunk)</div>
      <div class="image-demo cyberpunk"></div>
    </div>

    <div class="filter-item">
      <div class="filter-label">复古 (Retro)</div>
      <div class="image-demo retro"></div>
    </div>
  </body>
</html>

